export function get(url, params = {}) {
    return new Promise((resolve, reject) => {
        uni.request({
        	url:url,
					data:params,
					method:"GET",
					success: (res) => {
						resolve(res)
					},
					fail: (err) => {
						reject(err)
					}
        })
    })
}

export function post(url, data = {}) {
    return new Promise((resolve, reject) => {
        uni.request({
        	url:url,
					data:data,
					method:"POST",
					success: (res) => {
						resolve(res)
					},
					fail: (err) => {
						reject(err)
					}
        })
    })
}